package com.j2eefast.produce.pms.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.j2eefast.common.core.base.entity.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 生产管理样品出入库管理
 * pms_sample_output
 *
 * @author: summer
 * @date 2021-05-27 16:28
 */

@Data
@TableName("pms_sample_output")
public class PmsSampleOutputEntity  implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    private Integer id;

    @TableField(value = "sample_code")
    @ExcelProperty(value = "样品编号",index = 0)
    private String sampleCode;

    @TableField(value = "sample_type")
    @ExcelProperty(value = "样品种类",index = 1)
    private String sampleType;

    @TableField(value = "put_time")
    @ExcelProperty(value = "登记时间",index = 2)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date putTime;

    @TableField(value = "out_time")
    @ExcelProperty(value = "出库时间",index = 3)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date outTime;

    @TableField(value = "register_name")
    @ExcelProperty(value = "登记员",index = 4)
    private String registerName;

    @TableField(value = "user_id")
    @ExcelIgnore
    private String userId;

    @TableField(value = "create_by")
    @ExcelProperty(value = "创建者",index = 5)
    private String createBy;

    @TableField(value = "create_time")
    @ExcelProperty(value = "创建时间",index = 6)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date createTime;

    @TableField(value = "update_by")
    @ExcelProperty(value = "更新者",index = 7)
    private String updateBy;

    @TableField(value = "update_time")
    @ExcelProperty(value = "更新时间",index = 8)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date updateTime;

    @TableField(value = "remark")
    @ExcelProperty(value = "备注",index = 9)
    private String remark;

    @TableField(value = "check_out")
    @ExcelProperty(value = "出库人",index = 10)
    private Integer checkOut;

}
